#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <getopt.h>
#include <string.h>

#include <fonts_manager.h>
#include <encoding_manager.h>
#include <draw.h>



int main(int argc, char **argv)
{   

    RegisterAllFontOpr();
    RegisterAllEncodingOpr();
    SetSupportFontForAllEncodingOpr();
    
    ShowAllFontOpr();
    ShowAllEncodingOpr();

    int ret;
    ret = OpenTextFile("./utf8_novel.txt");
    if (ret)
    {
        printf("OpenTextFile error\n");
    }




    ret = SetTextFont("simsun.ttc", NULL, 16); 
    if (ret)
    {
        printf("SetTextFont error\n");
    }

    ShowFinalFontForTextFile();
    




    return 0;
}